#pragma once
#define USER_SETUP_ID 7028   // any unique ID

// ---- Driver & size ----
#define GC9A01_DRIVER
#define TFT_WIDTH  240
#define TFT_HEIGHT 240

// ---- Pins (CrowPanel 1.28" ESP32-S3) ----
#define TFT_MOSI 11
#define TFT_SCLK 10
#define TFT_CS    9
#define TFT_DC    3
#define TFT_RST  14
#define TFT_MISO -1   // not used

// Optional backlight define (TFT_eSPI won’t PWM it for you, but keeps info)
#define TFT_BL   46
#define TFT_BACKLIGHT_ON HIGH

// Start conservative on SPI clocks
#define SPI_FREQUENCY       27000000   // 27 MHz (bump later)
#define SPI_READ_FREQUENCY  20000000

#define LOAD_GLCD   1      // built-in 8x6 font (required for setTextSize)
#define LOAD_FONT2  1      // small FreeFont
#define LOAD_FONT4  1     // medium FreeFont (used in earlier code)
#define LOAD_FONT6  1
#define LOAD_FONT7  1
#define LOAD_FONT8  1
#define LOAD_GFXFF  1
#define SMOOTH_FONT // optional, but nice if you use .vlw fonts later
